package java_learn.java_jinjie.Stream流;

import java.util.stream.Stream;

/**
 * @Author: 李浩然
 * @Date: 2021/5/20 6:08 下午
 */
public class Demo02Map {
    public static void main(String[] args) {
        Stream<String> stream = Stream.of("1", "2", "3", "4");
        Stream<Integer> stream2 = stream.map((String s) -> {
            return Integer.parseInt(s);
        });
        stream2.forEach(i -> System.out.println(i));
    }
}
